<?php

namespace app\api\controller;

use app\api\model\UserModel;
use app\BaseController;

class User extends BaseController
{

    public function user_list(){
        $userModel = new UserModel();
        return json(['list'=>$userModel->list()]);
    }


    //获取用户基本信息
    public function User_base_info(){

        $params = input('get.');

        $userModel = new UserModel();

        return $this->rtnSuccess($userModel->findByUserId($params));

    }

}